<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{chfxForm.bundleName}"/>
    <head>
        <title>#{text['chfxDetail.title']}</title>
        <meta name="heading" content="#{text['chfxDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="chfxForm">

<h:form id="chfxForm" onsubmit="return validateChfxForm(this)">
<h:inputHidden value="#{chfxForm.chfx.id}" id="id"/>
<h:inputHidden value="#{chfxForm.chfx.version}" id="version"/>

<h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{chfxForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty chfxForm.chfx.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{chfxForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Chfx')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
</h:panelGroup>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="bzq" value="#{text['chfx.bzq']}"/>
    <t:message for="bzq" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bzq" value="#{chfxForm.chfx.bzq}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="chcb" value="#{text['chfx.chcb']}"/>
    <t:message for="chcb" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="chcb" value="#{chfxForm.chfx.chcb}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="chmc" value="#{text['chfx.chmc']}"/>
    <t:message for="chmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="chmc" value="#{chfxForm.chfx.chmc}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="chrksj" value="#{text['chfx.chrksj']}"/>
    <t:message for="chrksj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="chrksj" value="#{chfxForm.chfx.chrksj}" required="false" maxlength="23">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="sfjy" value="#{text['chfx.sfjy']}"/>
    <t:message for="sfjy" styleClass="fieldError"/>
    <h:selectBooleanCheckbox value="#{chfxForm.chfx.sfjy}" id="sfjy" styleClass="checkbox"/>
  
    <h:outputLabel styleClass="desc" for="sfzc" value="#{text['chfx.sfzc']}"/>
    <t:message for="sfzc" styleClass="fieldError"/>
    <h:selectBooleanCheckbox value="#{chfxForm.chfx.sfzc}" id="sfzc" styleClass="checkbox"/>
   
    <h:outputLabel styleClass="desc" for="sl" value="#{text['chfx.sl']}"/>
    <t:message for="sl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="sl" value="#{chfxForm.chfx.sl}" required="false" maxlength="255">
    </h:inputText>
     <!-- 
    <h:outputLabel styleClass="desc" for="id" value="#{text['chfx.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{chfxForm.chfx.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['chfx.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/>
    
     <h:outputLabel styleClass="desc" for="bz" value="#{text['chfx.bz']}"/>
    <t:message for="bz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bz" value="#{chfxForm.chfx.bz}" required="false" maxlength="100">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="operation" value="#{text['chfx.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{chfxForm.chfx.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['chfx.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{chfxForm.chfx.optdate}" required="false" maxlength="23">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="xh" value="#{text['chfx.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{chfxForm.chfx.xh}" required="false" maxlength="255">
    </h:inputText>
    
     </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['chfx.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{chfxForm.chfx.username}" required="false" maxlength="50">
    </h:inputText>
     -->
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateChfxForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('chfxForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
